import {getRequest, postRequest} from "@/api/axios";

export const userLogin = (user) => postRequest('user/login',user);

export const userRegister = (user) => postRequest('user/register',user)

export const userSearch = (user) => postRequest('user/getUser',user)

export const userUpdate = (user) => postRequest('user/update',user)

export const userDelete = (id) => getRequest('user/delete',{id})

export const getUserById = (id) => getRequest('user/getUserById',{id})